<?php

    session_start();
    
    //Inclui o arquivo de configuracao do Framework.
    include_once 'framework/Config.php';

    /**
    * __autoload, inclui as classes dinamicamente
    * @param $class
    */
    spl_autoload_register(function ($class) {
        $classPath = Config::$CLASS_PATH;
        foreach ($classPath as $Path) {
            if (file_exists("{$Path}/{$class}.php")) {
                require_once "{$Path}/{$class}.php";
                return true;
            }
        }
        return false;
    });

//	Secutiry::registerUser(array('usuario' => 'thyago', 'profille' => array('ADMINISTRADOR')), 'thyago');
    
//     echo 'var_dump Session na index';
//     var_dump($_SESSION);

//    Secutiry::logout();
    
    // Configuracao da URL
    Uri::getURI();
    

?>	